import ToolActionApi from "@/tool/http/tool-action.js";

let deviceAction = ToolActionApi.init("things_device");

let metadata = [{ name: "device_code", memo: "设备信息" }];

const rule = {
  queryParams: [],
  metadata: [...metadata],
};

export default async function () {
  rule.metadata[0].dictList = await deviceAction.dict("name", "code");
  return rule;
}
